<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EndpointErrorContract>" %>
<%@ Import Namespace="SimpleServiceBus.EndpointManagement.Wcf.Contracts.Data"%>
<%@ Import Namespace="SimpleServiceBus.EndpointMonitor.Web.Helpers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Error
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Endpoint Error Report</h2>
    <div>
    Endpoint: 
    <a href="<%=Url.EndpointLink(ViewData.Model.ManagedEndpoint)%>">
      <%=ViewData.Model.ManagedEndpoint.Name ?? ViewData.Model.ManagedEndpoint.EndpointID%>
        
    </a>
    </div>
    <div>
    Failed Message ID:<%=ViewData.Model.FailedMessageID%>
    </div>
    <div>
    Timestamp: <%=ViewData.Model.Timestamp.ToLocalTime()%>
    </div>
    
    <div class="exceptionContainer">
    <pre><%=ViewData.Model.ErrorMessage%></pre>
    </div>

</asp:Content>
